package service

import (
	// "wms/internal/model" // Removed unused import
	// "wms/pkg/global" // Removed unused import
	"wms/pkg/database" // Added database import
	// "go.uber.org/zap" // Removed unused import

	"gorm.io/gorm"
)

// SystemService 系统服务
type SystemService struct {
	db *gorm.DB // db field is currently unused by GetSystemInfo
}

// NewSystemService 创建系统服务
func NewSystemService() *SystemService {
	return &SystemService{
		db: database.GetDB(), // Use imported database package
	}
}


// GetSystemInfo 获取系统信息
func (s *SystemService) GetSystemInfo() map[string]interface{} {
	// This function currently does not use s.db
	return map[string]interface{}{
		"version":      "1.0.0",
		"name":         "仓库管理系统",
		"author":       "WMS团队",
		"lastModified": "2023-01-01", // Consider making this dynamic
	}
}
